from django.conf.urls import url

from . import views
#

urlpatterns = [
    url(r'^register/$',views.Register.as_view()),
    url(r'^usernames/(?P<username>[a-zA-Z0-9_-]{5,20})/count/$',views.UsernameCountview.as_view()),
    url(r'^mobiles/(?P<mobile>1[345789]\d{9})/count/$',views.Usermobileview.as_view()),
    url(r'^login/$',views.LoginView.as_view()),
    url(r'^info/$',views.UserInfoView.as_view()),
    url(r'^emails/$',views.EmailView.as_view()),
    url(r'^verify/email/$',views.VerifyEmailView.as_view()),
    url(r'^addresses/$',views.AddressesView.as_view()),
    url(r'^addresses/create/$',views.AddressesCreateView.as_view()),
    url(r'^addresses/(?P<address_id>\d+)/$',views.AddressesUpdateView.as_view()),
    url(r'^addresses/(?P<address_id>\d+)/default/$',views.AddressesDefaultView.as_view()),
    url(r'^addresses/(?P<address_id>\d+)/title/$',views.AddressesTitleView.as_view()),
]
